<?xml version="1.0"?>
<SyntaxDefinition name="Python" extensions=".py">

  <Properties>
    <Property name="LineComment" value="#"/>
  </Properties>

  <Digits name="Digits" bold="false" italic="false" color="DarkBlue"/>

  <RuleSets>
    <RuleSet ignorecase="false">
      <Delimiters>&amp;&lt;&gt;~!%^*()-+=|\#/{}[]:;"' ,	.?</Delimiters>

      <Span name = "LineComment" rule = "CommentMarkerSet" bold = "false" italic = "false" color = "Green" stopateol = "true">
        <Begin>#</Begin>
      </Span>

      <Span name = "BlockComment" rule = "CommentMarkerSet" bold = "false" italic = "false" color = "Green" stopateol = "false">
        <Begin>/*</Begin>
        <End>*/</End>
      </Span>

      <Span name = "String" bold = "false" italic = "false" color = "DarkRed" stopateol = "false">
        <Begin>"</Begin>
        <End>"</End>
      </Span>

      <Span name = "Char" bold = "false" italic = "false" color = "DarkRed" stopateol = "false">
        <Begin>&apos;</Begin>
        <End>&apos;</End>
      </Span>

      <!--Span name = "Identifier" bold = "false" italic = "false" color = "CadetBlue" stopateol = "false">
        <Begin>[</Begin>
        <End>]</End>
      </Span-->

      <!--MarkPrevious bold = "true" italic = "false" color = "MidnightBlue">(</MarkPrevious-->

      <KeyWords name = "Punctuation" bold = "false" italic = "false" color = "DarkGreen">
        <Key word = "?" />
        <Key word = "," />
        <Key word = "." />
        <Key word = ";" />
        <Key word = "(" />
        <Key word = ")" />
        <Key word = "[" />
        <Key word = "]" />
        <Key word = "{" />
        <Key word = "}" />
        <Key word = "+" />
        <Key word = "-" />
        <Key word = "/" />
        <Key word = "%" />
        <Key word = "*" />
        <Key word = "&lt;" />
        <Key word = "&gt;" />
        <Key word = "^" />
        <Key word = "=" />
        <Key word = "~" />
        <Key word = "!" />
        <Key word = "|" />
        <Key word = "&amp;" />
      </KeyWords>

      <KeyWords name = "OperatorKeywords" bold="false" italic="false" color="Magenta">
        <Key word = "__init__"/>
      </KeyWords>

      <KeyWords name = "AccessKeywords" bold="false" italic="false" color="DarkRed">
        <Key word = "None" />
        <Key word = "True" />
        <Key word = "False" />
      </KeyWords>

      <!--KeyWords name = "SelectionStatements" bold="false" italic="false" color="Blue"-->
			<KeyWords name = "ReservedWords" bold="true" italic="false" color="Blue">
				<Key word="and"/>
				<Key word="as"/>
				<Key word="assert"/>
				<Key word="break"/>
				<Key word="class"/>
				<Key word="continue"/>
				<Key word="def"/>
				<Key word="del"/>
				<Key word="elif"/>
				<Key word="else"/>
				<Key word="except"/>
				<Key word="exec"/>
				<Key word="finally"/>
				<Key word="for"/>
				<Key word="from"/>
				<Key word="global"/>
				<Key word="if"/>
				<Key word="import"/>
				<Key word="in"/>
				<Key word="is"/>
				<Key word="lambda"/>
				<Key word="not"/>
				<Key word="or"/>
				<Key word="pass"/>
				<Key word="print"/>
				<Key word="raise"/>
				<Key word="return"/>
				<Key word="try"/>
				<Key word="while"/>
				<Key word="with"/>
				<Key word="yield"/>
			</KeyWords>
    </RuleSet>

    <RuleSet name = "CommentMarkerSet" ignorecase = "true"></RuleSet>
    <RuleSet name = "DocCommentSet" ignorecase = "false"></RuleSet>
    <RuleSet name = "XmlDocSet" ignorecase = "false"></RuleSet>

  </RuleSets>
</SyntaxDefinition>
